{if !empty($diyitem['params']['audiourl'])}
    {if empty($diyitem['params']['playerstyle'])}
        <div class="fui-audio play-audio" style="background: {$diyitem['style']['background']}; margin: {$diyitem['style']['paddingtop']}px {$diyitem['style']['paddingleft']}px; border-color: {$diyitem['style']['bordercolor']};"
             data-autoplay="{$diyitem['params']['autoplay']}" data-pausestop="{$diyitem['params']['pausestop']}"
        >
            <div class="horn"></div>
            <div class="center">
                <p style="color: {$diyitem['style']['textcolor']};">{php echo !empty($diyitem['params']['title'])?$diyitem['params']['title']:"未定义音频信息"}</p>
                {if !empty($diyitem['params']['subtitle'])}
                <p style="color: {$diyitem['style']['subtitlecolor']}; font-size: 0.65rem;">{$diyitem['params']['subtitle']}</p>
                {/if}
            </div>
            <div class="time" style="color: {$diyitem['style']['timecolor']}; display: none;">0'0''</div>
            <div class="speed"></div>
            <audio {if !empty($diyitem['params']['loopplay'])}loop{/if} preload="auto">
                <source src="{php echo tomedia($diyitem['params']['audiourl'])}" type="audio/mpeg" />
            </audio>
        </div>
    {else}
        <div class="fui-chat-item {$diyitem['params']['headalign']} play-audio"
             data-autoplay="{$diyitem['params']['autoplay']}" data-pausestop="{$diyitem['params']['pausestop']}"
        >
            {if $diyitem['params']['headalign']=='left'}
                <div class="face">
                    <img src="{php echo !empty($diyitem['params']['headurl'])&&empty($diyitem['params']['headtype']) ? tomedia($diyitem['params']['headurl']) : tomedia($_W['shopset']['shop']['logo'])}" />
                </div>
            {/if}
            <div class="msg" style="width: {$diyitem['style']['width']}px;">
                <div class="horn"></div>
            </div>
            {if $diyitem['params']['headalign']=='right'}
                <div class="face">
                    <img src="{php echo !empty($diyitem['params']['headurl'])&&empty($diyitem['params']['headtype']) ? tomedia($diyitem['params']['headurl']) : tomedia($_W['shopset']['shop']['logo'])}" />
                </div>
            {/if}
            <audio {if !empty($diyitem['params']['loopplay'])}loop{/if} >
                <source src="{php echo tomedia($diyitem['params']['audiourl'])}" type="audio/mpeg" />
            </audio>
        </div>
    {/if}
{/if}